/**
 * @author Haidar Osman
 */
var RelationObj = function(fromClassObj, toClassObj,type) {
	this.fromClass = fromClassObj;
	this.toClass = toClassObj;
	this.type=type;
	this.title="Title";
	this.fromNum="*";
	this.toNum="*";
	this.isHighlighted=false;
	this.isFromNumHighlighted=false;
	this.isToNumHighlighted=false;
	this.isSelected=false;
	var that=this;
	this.getJSON=function()
	{
		var relation={
			from:that.fromClass.name,
			to:that.toClass.name,
			title:that.title,
			type:that.type
		};
		return relation;
	}
	
}